package com.glory.dgcpcpda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.dgcpcpda.R;
import com.glory.dgcpcpda.entity.LotInfoEntity;
import com.glory.dgcpcpda.entity.SchedulingEntity;

import java.util.List;

public class SchedulingAdapter extends BaseQuickAdapter<SchedulingEntity.EQUIPMENTLISTDTO, BaseViewHolder> {

   public SchedulingAdapter(@Nullable List<SchedulingEntity.EQUIPMENTLISTDTO> data) {
      super(R.layout.item_scheduling,data);
   }

   @Override
   protected void convert(BaseViewHolder helper, SchedulingEntity.EQUIPMENTLISTDTO item) {
      helper.setText(R.id.tvEqpID,item.getEquipmentid());
      helper.setText(R.id.tvLocation,item.getLocation());
      helper.setText(R.id.tvEqpType,item.getEqptype());
   }
}
